package org.file5.service;

import org.file5.exception.ImageTooLargeException;
import org.file5.exception.InvalidSwagImageException;
import org.file5.exception.LoadImageFromURLException;

public interface ImageService {

	// List<Attachment> getAll();

	// Attachment get(String key);

	byte[] getResizedImageBytes(int width, int height, byte[] originalImageBytes);

	byte[] getResizedThumbnailImageBytes(int width, int height, byte[] originalImageBytes);

	// byte[] getThumbnailBytes(String key);

	public byte[] getDefaultImageBytes(String requestURL);

	public byte[] getImageDataFromURL(String imageURL) throws LoadImageFromURLException, ImageTooLargeException;

	public void checkImageMimeType(byte[] imageData) throws InvalidSwagImageException;
}
